home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10146 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Invalid Indirection???
  5. Date: Fri, 15 Mar 96 16:03:07 GMT
  6. Organization: none
  7. Message-ID: <826905787snz@genesis.demon.co.uk>
  8. References: <4i7cck$t67@infa.central.susx.ac.uk>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4i7cck$t67@infa.central.susx.ac.uk>
  15.            taux5@central.susx.ac.uk "Doan Nguyen" writes:
  16.  
  17. >float tempa, tempb, tempi, tempj [NPIC-1];
  18.  
  19.  
  20. ...
  21.  
  22. >                   tmp = (tempi[i]*tempj[i])+(tempi[i+1]*tempj[i+1]));
  23. >        
  24. >/* This is where the compiler stops and says there's an invalid
  25. >indirection for the "tmp" assignment */
  26.  
  27. There is an extra ) at the end of the expression but that particular error
  28. is due to the fact that you are trying to dereference tempi as an array or
  29. pointer but you haven't defined it as an array or pointer.
  30.  
  31. -- 
  32. -----------------------------------------
  33. Lawrence Kirby | fred@genesis.demon.co.uk
  34. Wilts, England | 70734.126@compuserve.com
  35. -----------------------------------------
  36.